﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace FlightSearchServer
{
    [Serializable]
    [CollectionDataContract(Name = "flightRoutes", ItemName = "routes")]
    class FlightRoutes : List<Route>
    {
        public FlightRoutes() { }

        public FlightRoutes(List<Route> routes) : base(routes) { }

        public FlightRoutes( params Route[] routes)
        {
            foreach (Route route in routes)
                Add(route);
        }
    }
}
